import request from '@/utils/http'


export function list(params: any) {
  return request({
    url: '/biosample/samplesdetail/list',
    method: 'get',
    params
  })
}

export function add(data: any) {
  return request({
    url: '/biosample/samplesdetail/list/add',
    method: 'post',
    data
  })
}

export function userdel(params: { id: number }) {
  return request({
    url: '/biosample/samplesdetail/list/delete',
    method: 'post',
    params
  })
}

export function detail(params: { id: number }) {
  return request({
    url: '/biosample/samplesdetail/list/detail',
    method: 'get',
    params
  })
}

export function updata(data: any) {
  return request({
    url: '/biosample/samplesdetail/list/update',
    method: 'put',
    data
  })
}

// 新增样本采集
export function selectSamples(data: any) {
    return request({
        url: 'biosample/samples/select-list',
        method: 'get',
        data:data
    });
}